package shejimoshi.AbF;

public class Main {
    public static void main(String[] args) {
        AFruitAndVegetables aConF = new AConF();
        Fruit apple = aConF.CreateF();
        Vegetables cabbage = aConF.CreateV();
        if (apple != null) {
            apple.eat();
        }
        AFruitAndVegetables bConF = new BConF();
        Fruit banana = bConF.CreateF();
        if (banana != null) {
            banana.eat();
        }
    }
}
